package lab02.test05;

public class Cube {
    //1、属性
    private double length;
    private double width;
    private double high;

    //2、方法（函数、行为）
    public double Scube(){
        return length*width*high;
    }
    //3、构造方法
    Cube(){}
    Cube(double length,double width,double high){
        this.length = length;
        this.width = width;
        this.high = high;
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public double getWidth() {
        return width;
    }

    public void setWidth(double width) {
        this.width = width;
    }

    public double getHigh() {
        return high;
    }

    public void setHigh(double high) {
        this.high = high;
    }
}
